<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        <table style="margin: auto"   border="1">
            <tr>
                <th>产品类型id</th>
                <th>产品类型名称</th>
                <th>操作</th>
            </tr>
            <tr th:each="protype : ${protypelist}">
                <td th:text="${protype.productTypeId}"></td>
                <td th:text="${protype.productTypeName}"></td>

                <td>
                    <form action="protypeupdate" method="post">
                        <input type="hidden" name="protypeid" th:value="${protype.productTypeId}"><input
                            type="submit" class="but" value="修改">
                    </form>
                    <form action="deleteProtype" method="post">
                        <input type="hidden" name="protypeid" th:value="${protype.productTypeId}"><input
                            type="submit" class="but" value="删除">
                    </form>
                </td>
            </tr>
        </table>
        <form action="protypeinsert" method="post">
            <input type="submit" value="增加" style="margin-left: 827px">
        </form>
</body>
</html>